package hrms.dao;

import hrms.entity.Finance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FinanceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Finance record);

    Finance selectByPrimaryKey(Integer id);

    List<Finance> selectAll();

    int updateByPrimaryKey(Finance record);

    List<Finance> selectByDate(@Param("createYear") Integer createYear, @Param("createMonth") Integer createMonth);
}